﻿using ToffeeHttp.Runtime.Core;
using UnityEngine.Networking;

public class JsonMsgHandler : IMsgChannel
{
    public object Decoder(UnityWebRequest response)
    {
        return response.downloadHandler.text;
    }

    public object Encoder(object msg)
    {
        return FJson.FJsonUtility.ToJson(msg);
    }
}
